package com.luo.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

public class Driver {
    private Integer id;
    private String driverCard;
    private String driverType;
    private User user;
    private Integer userId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Timestamp driverFirstTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Timestamp driverStartTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Timestamp driverEndTime;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDriverCard() {
        return driverCard;
    }

    public void setDriverCard(String driverCard) {
        this.driverCard = driverCard;
    }

    public String getDriverType() {
        return driverType;
    }

    public void setDriverType(String driverType) {
        this.driverType = driverType;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Timestamp getDriverFirstTime() {
        return driverFirstTime;
    }

    public void setDriverFirstTime(Timestamp driverFirstTime) {
        this.driverFirstTime = driverFirstTime;
    }

    public Timestamp getDriverStartTime() {
        return driverStartTime;
    }

    public void setDriverStartTime(Timestamp driverStartTime) {
        this.driverStartTime = driverStartTime;
    }

    public Timestamp getDriverEndTime() {
        return driverEndTime;
    }

    public void setDriverEndTime(Timestamp driverEndTime) {
        this.driverEndTime = driverEndTime;
    }
}
